package com.exhibition.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.exhibition.mapper.TbVenueMapper;
import com.exhibition.service.ITbVenueService;


@Service
public class ITbVenueServiceImpl implements ITbVenueService {

	@Autowired
	private TbVenueMapper tbVenueMapper;
	
	@Override
	public List<Map<String, Object>> getList(Map<String, Object> map) {
		return tbVenueMapper.getList(map);
	}
	@Override
	public Map<String, Object> getOne(Map<String, Object> map) {
		return tbVenueMapper.getList(map).get(0);
	}
	@Override
	public void add(Map<String, Object> map) {
		tbVenueMapper.add(map);
	}
	@Override
	public void update(Map<String, Object> map) {
		tbVenueMapper.update(map);
	}
	@Override
	public void delete(String id) {
		tbVenueMapper.delete(id);
	}
}
